package com.goods.common.model.business;

import com.goods.common.vo.business.ProductCategoryTreeNodeVO;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * @author ：MJS
 * @date ：Created in 2021/6/7  14:42
 * @description：TODO
 */
@Excel("categories")
@Data
@Table(name = "biz_product_category")
public class ProductCategoryTreeNode {
    @Id
    @ExcelField(value = "类别id", width = 50)
    private Long id;

    @ExcelField(value = "类别名称", width = 100)
    private String name;

    @ExcelField(value = "备注", width = 120)
    private String remark;

    @ExcelField(value = "排序", width = 150)
    private Integer sort;

    @ExcelField(value = "创建时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
    private Date createTime;
    @ExcelField(value = "修改时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
    private Date modifiedTime;

    @ExcelField(value = "父级分类id", width = 100)
    private Long pid;

    private List<ProductCategoryTreeNodeVO> children;
}
